//
//  ListenListDetailTableViewCell.m
//  SuperNews
//
//  Created by dllo on 16/1/14.
//  Copyright © 2016年 qiang. All rights reserved.
//

#import "ListenListDetailTableViewCell.h"

@implementation ListenListDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubviews];
    }
    return self;
}

- (void)createSubviews
{
    
    NSArray *imageArr = [NSArray arrayWithObjects:[UIImage imageNamed:@"audionews_playlist_playing01"], [UIImage imageNamed:@"audionews_playlist_playing02"], nil];
    
    self.imageV = [[UIImageView alloc] init];
    self.imageV.animationImages = imageArr;
    self.imageV.animationRepeatCount = 0;
    self.imageV.animationDuration = 0.8;
    [self.imageV startAnimating];
    [self.contentView addSubview:self.imageV];
    
    self.backgroundColor = [UIColor whiteColor];
    self.titleLabel = [[UILabel alloc] init];
    self.titleLabel.font = [UIFont systemFontOfSize:15.0];
    [self.contentView addSubview:self.titleLabel];
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.imageV.frame = CGRectMake([UIScreen mainScreen].bounds.size.width - 30, 10, 20, 20);
    self.titleLabel.frame = CGRectMake(10, 0, [UIScreen mainScreen].bounds.size.width - 40, 40);
}

@end
